package com.broada.apm.model;

import java.util.Date;

/**
 * 交易明细
 * @author admin
 *
 */
public class TransactionRecord {
	private String id;
    private String srcIp;//来源IP
    private String dstIp;//目标IP
    private String serviceId;//服务节点id
    private String resourceId;//交易id
    private int protocol;//协议号
    private String l7SubProto;//子协议类型
    private String code;//交易号
    private String uri;//交易uri
    private String name;//交易名称
    private String channelName;//交易渠道名称
    private String channelCode;//交易渠道编码
    private String typeName;//交易类型名称
    private String typeCode;//交易类型编码
    private String subTypeName;//子交易类型名称
    private String subTypeCode;//子交易类型编码
    private Date startTime;//开始时间
    private Date endTime;//结束时间
    private String responseCode;//返回码
    private String responseCodeString;//返回码信息
    private String errorMessage;//应用层详细错误信息
    private long responseTime;//响应时间
    private long connectionSynTime;//TCP建链时间
    private long requestSendTime;//请求发送时间
    private long responseServerTime;//服务器响应时间
    private long downloadTime;//下载时间
    private long rx;
    private long tx;
    private boolean isError;//是否错误
    private String transactionType;// 是否是慢交易
    private String applicationId;
    private long startTimeMillion;
    private String stability_level1;
    private String stability_level2;
    private String scale_level1;
    private String apdexFlag; // satisfaction：满意；tolerate：可容忍；unsatisfaction：不满意
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSrcIp() {
		return srcIp;
	}
	public void setSrcIp(String srcIp) {
		this.srcIp = srcIp;
	}
	public String getDstIp() {
		return dstIp;
	}
	public void setDstIp(String dstIp) {
		this.dstIp = dstIp;
	}
	public String getServiceId() {
		return serviceId;
	}
	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}
	public String getResourceId() {
		return resourceId;
	}
	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}
	public int getProtocol() {
		return protocol;
	}
	public void setProtocol(int protocol) {
		this.protocol = protocol;
	}
	public String getL7SubProto() {
		return l7SubProto;
	}
	public void setL7SubProto(String l7SubProto) {
		this.l7SubProto = l7SubProto;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getUri() {
		return uri;
	}
	public void setUri(String uri) {
		this.uri = uri;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public String getChannelCode() {
		return channelCode;
	}
	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getTypeCode() {
		return typeCode;
	}
	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}
	public String getSubTypeName() {
		return subTypeName;
	}
	public void setSubTypeName(String subTypeName) {
		this.subTypeName = subTypeName;
	}
	public String getSubTypeCode() {
		return subTypeCode;
	}
	public void setSubTypeCode(String subTypeCode) {
		this.subTypeCode = subTypeCode;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getResponseCode() {
		return responseCode;
	}
	public void setResponseCode(String responseCode) {
		this.responseCode = responseCode;
	}
	public String getResponseCodeString() {
		return responseCodeString;
	}
	public void setResponseCodeString(String responseCodeString) {
		this.responseCodeString = responseCodeString;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public long getResponseTime() {
		return responseTime;
	}
	public void setResponseTime(long responseTime) {
		this.responseTime = responseTime;
	}
	public long getConnectionSynTime() {
		return connectionSynTime;
	}
	public void setConnectionSynTime(long connectionSynTime) {
		this.connectionSynTime = connectionSynTime;
	}
	public long getRequestSendTime() {
		return requestSendTime;
	}
	public void setRequestSendTime(long requestSendTime) {
		this.requestSendTime = requestSendTime;
	}
	public long getResponseServerTime() {
		return responseServerTime;
	}
	public void setResponseServerTime(long responseServerTime) {
		this.responseServerTime = responseServerTime;
	}
	public long getDownloadTime() {
		return downloadTime;
	}
	public void setDownloadTime(long downloadTime) {
		this.downloadTime = downloadTime;
	}
	public long getRx() {
		return rx;
	}
	public void setRx(long rx) {
		this.rx = rx;
	}
	public long getTx() {
		return tx;
	}
	public void setTx(long tx) {
		this.tx = tx;
	}
	public boolean getIsError() {
		return isError;
	}
	public void setIsError(boolean isError) {
		this.isError = isError;
	}
	public String getApplicationId() {
		return applicationId;
	}
	public void setApplicationId(String applicationId) {
		this.applicationId = applicationId;
	}
	public String getTransactionType() {
		return transactionType;
	}
	public void setTransactionType(String transactionType) {
		this.transactionType = transactionType;
	}
	public long getStartTimeMillion() {
		return startTimeMillion;
	}
	public void setStartTimeMillion(long startTimeMillion) {
		this.startTimeMillion = startTimeMillion;
	}
	public String getStability_level1() {
		return stability_level1;
	}
	public void setStability_level1(String stability_level1) {
		this.stability_level1 = stability_level1;
	}
	public String getStability_level2() {
		return stability_level2;
	}
	public void setStability_level2(String stability_level2) {
		this.stability_level2 = stability_level2;
	}
	public String getScale_level1() {
		return scale_level1;
	}
	public void setScale_level1(String scale_level1) {
		this.scale_level1 = scale_level1;
	}
	public String getApdexFlag() {
		return apdexFlag;
	}
	public void setApdexFlag(String apdexFlag) {
		this.apdexFlag = apdexFlag;
	}
}
